package com.designPattern.factoryMethod.creatorImpl;

import com.designPattern.factoryMethod.creator.PizzaStore;
import com.designPattern.factoryMethod.product.Pizza;
import com.designPattern.factoryMethod.productImpl.ChicageStyleCheesePizza;

/**
 * 芝加哥风味的披萨商店
 */
public class ChicagePizzaStore extends PizzaStore {

	@Override
	public Pizza createPizza(String type) {
		if ("cheese".equals(type)) {
			return new ChicageStyleCheesePizza();
		} else
			return null;
	}

}
